package com.moter.demo01.io.in_outputstream.filterstream.pushbackstream;

import java.io.*;

public class PrintStreamDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("src\\main\\java\\com\\moter\\demo01\\io\\in_outputstream\\filterstream\\pushbackstream\\pushback.txt");
        FileOutputStream fileOutputStream = new FileOutputStream(file);
        PrintStream printStream = new PrintStream(fileOutputStream);
        printStream.println("你好");
        printStream.println("我叫moter");
        printStream.println(23);
//        printStream.flush();
        printStream.close();

    }
}
